home *** CD-ROM | disk | FTP | other *** search
- Path: uuneo.neosoft.com!usenet
- From: Wmatthew@lan-aces.com (W. Matthews)
- Newsgroups: comp.lang.c++
- Subject: Re: How can I include IOSTREAM.H only once?
- Date: 8 Mar 1996 22:33:44 GMT
- Organization: LAN-ACES, Inc.
- Message-ID: <4hqck8$fvc@uuneo.neosoft.com>
- References: <4hbi55$899@sam.inforamp.net> <4hc09v$136@news1.usa.pipeline.com> <4hj42l$elu@sam.inforamp.net>
- NNTP-Posting-Host: 198.65.178.8
- X-Newsreader: WinVN 0.92.5
-
- In article <4hj42l$elu@sam.inforamp.net>, rmorin@inforamp.net (Randy Charles Morin) says:
- >
- >In article <4hc09v$136@news1.usa.pipeline.com>,
- > grantp@usa.pipeline.com(Pete) wrote:
- >>I believe this answer is to a question other than the one asked.
- >>There's no way to accomplish what the original poster wants to do,
- >>although eader precompilation will ease the situation.
- >
- >And I believe Pete is getting on my nerves. Just because you have an another
- >suggestion, doesn't mean that my suggestion is wrong. If you have an
- >alternative suggestion, then state it. But don't say another suggestion is
- >not answering the question. If you think about my suggestion then you'll
- >understand that it is complementary to your suggestion, but that would be
- >asking too much.
- >
- >Agrivar
-
- I haven't seen the entire string relating to this, but some compilers have
- a useful #define statement in the include files.
- The way to take advantage of this is to do something along the following
- lines in each source module that may include a particular header. However,
- this does not work in every situation: (I use stdio.h as an example)
- #ifndef __STDIO__
- #include <stdio.h>
- #endif
-
- ________________________________________________
- |Wyatt Matthews: Tech Support Department |
- |WMATTHEW@LAN-ACES.COM -Internet- |
- |WMATTHEW.MHS@LAN-ACES -MHS- |
- |LAN-ACES Tech Support (713)890-9786 |
- |LAN-ACES BBS (713)890-9790 |
- |LAN-ACES Fax (713)890-9731 |
- |LAN-ACES Sales (713)890-9787 |
- |______________________________________________|
-